package com.foreknow.demo27;

public class MyThread2 extends Thread{
    @Override
    public void run() {
        int count = 0;
        while(count<10){
            count++;
            System.out.println("Thread2:"+count);
        }
    }
}
